# Author: lvin
import requests
def face_compare(API_key,API_secret,face_token_01,face_token_02):
    '''face++ face_compare函数'''
    compare_url = "https://api-cn.faceplusplus.com/facepp/v3/compare"
    payload = {
    "api_key":API_key,
    "api_secret":API_secret,
    "face_token1":face_token_01,
    "face_token2":face_token_02

    }
    r_compare = requests.post(url = compare_url , params = payload)
    return r_compare.json()